package cn.chenxing.domain.dto;

import lombok.Data;

/**
 * @Description 轨迹点
 * @Author maogen.ymg
 * @Date 2020/3/22 15:40
 */
@Data
public class TrackPoint implements Comparable<TrackPoint> {
    /**点的ID**/
    private int id;
    /**经度**/
    private double longitude;
    /**纬度**/
    private double latitude;
    /**时间戳**/
    private long timeStamp;
    /**速度**/
    private double speed;

    @Override
    public int compareTo(TrackPoint o) {
        if(this.id > o.id){
            return 1;
        }else if(this.id < o.id){
            return -1;
        }
        return 0;
    }
}
